/*QGraphicsItem index binding to every step*/

#ifndef INDEX_H
#define INDEX_H

#include <QGraphicsItem>

class QString;
class QRectF;

class Index : public QGraphicsItem
{
public:
    Index(int color, unsigned int index);

    QRectF boundingRect() const;
    QPainterPath shape() const;
    void paint(QPainter *painter,
               const QStyleOptionGraphicsItem *option, QWidget *widget);

private:
    char buffer[5];
    int c; //pass parameter color
    QRectF *rect;
};

#endif // INDEX_H
